﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="_619BJP.Web.Controllers" %>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContent" runat="server">
   619保健品点评网
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <link href="../../Content/css/Instance/Home/Index.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/Component/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../../Scripts/Component/jquery-1.6.2.js" type="text/javascript"></script>
    <script src="../../Scripts/Component/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../../Scripts/Component/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../../Scripts/Component/jquery.ui.tabs.js" type="text/javascript"></script>
    <script src="../../Scripts/Component/jquery.smallslider.js" type="text/javascript"></script>
    <link href="../../Content/css/Component/smallslider/smallslider.css" rel="stylesheet" type="text/css" media="screen"/>
    <script type="text/javascript">
        $(function () {
            $("#population_recommend").tabs({
                event: "mouseover"
            });
            $("#effect_recommend").tabs({
                event: "mouseover"
            });
            $("#attention").tabs({
                event: "mouseover"
            });
            $('#directtrain').smallslider();
        });
	</script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="directtrain">
<%--        <div class="title"></div>
        <ul >
            <li><div class="icon_1"></div><a>最新上榜  <span class="arrows"> >></span></a></li>
            <li><div class="icon_2"></div><a>专家推荐  <span class="arrows"> >></span></a></li>
            <li><div class="icon_3"></div><a>品牌推荐  <span class="arrows"> >></span></a></li>
            <li><div class="icon_4"></div><a>功效分类  <span class="arrows"> >></span></a></li>
            <li><div class="icon_5"></div><a>健康器械  <span class="arrows"> >></span></a></li>
        </ul>--%>
        <ul>
            <li><a href="#"><img src="../../AdImages/ad_4.jpg" alt="图片标题1"/></a></li>
            <li><a href="#"><img src="../../AdImages/ad_5.jpg" title="111" alt="图片标题2" /></a></li>
            <li><a href="#"><img src="../../AdImages/ad_6.jpg" title="222" alt="图片标题3" /></a></li>
        </ul>
    </div>
    <div id="care_encyclopedia">
        <div class="title"></div>
        <ul>
            <%System.Data.DataSet ds_week = (new ArticleController()).GetWeeklyArticle();
                for (int i = 0; i < 10; i++)
                {
                    string title = (new _619BJP.Web.Controllers.ArticleController()).TitleForShort(Html.Encode(ds_week.Tables[0].Rows[i]["title"]),13);
            %>
            <li>
                <a href="Article/ArticleDetails/<%= Html.Encode(ds_week.Tables[0].Rows[i]["id"])%>" target="_blank"><%= title%></a>
            </li>
            <%} %>  
        </ul>
        <div class="more">
            <a href="/Article/ArticleIndex"> 更多>> </a>
        </div>
    </div>
    <div id="attention">
        <div id="attention_title">
            <ul class="tabs">
                <li><a href="#attention_content">本月最受关注产品</a></li>
                <li><a href="#attention_brand">本月最受关注品牌</a></li>
            </ul>
        </div>
        <div id="attention_content">
            <table cellspacing="0" class="tb_list" id="tb_productlist">
			    <thead>
				    <tr>
                        <th class="" style="width:8%">排名</th>
					    <th class="" style="width:15%">产品图片</th>
					    <th class="" style="width:32%">产品名称</th>
					    <th class="" style="width:40%">适用人群</th>			
				    </tr>
			    </thead>
                <%System.Data.DataSet ds_hot = (new ProductController()).GetHotProducts(10);
                    if (ds_hot.Tables[0].Rows.Count > 0)
                    {
                        for (int i = 0; i < 3; i++)
                        {
                            string product_name = (new _619BJP.Web.Controllers.ArticleController()).TitleForShort(Html.Encode(ds_hot.Tables[0].Rows[i]["product_name"]), 10);
                %>
                    <tr>
                        <td><div class="rank_num_top"><span><%=i + 1%></span></div></td>
                        <td> 
                            <a href="/Product/ProductDetails/<%= Html.Encode(ds_hot.Tables[0].Rows[i]["id"])%>">
                                <img src="../..<%=ds_hot.Tables[0].Rows[i]["img_url"] %>"/>
                            </a>
                        </td>
                        <td>
                            <a class="productname" href="/Product/ProductDetails/<%= Html.Encode(ds_hot.Tables[0].Rows[i]["id"])%>" title="<%=ds_hot.Tables[0].Rows[i]["product_name"] %>">
                                <%=ds_hot.Tables[0].Rows[i]["product_name"] %>
                            </a>
                        </td>
                        <td>
                            <%=ds_hot.Tables[0].Rows[i]["suit_crowds"]%>
                        </td>
                    </tr>
                    <%} for (int j = 3; j < 5; j++)
                        {
                            string product_name = (new _619BJP.Web.Controllers.ArticleController()).TitleForShort(Html.Encode(ds_hot.Tables[0].Rows[j]["product_name"]), 10);
                        %> 
                    <tr>
                        <td><div class="rank_num"><span><%=j+1%></span></td>
                        <td> 
                            <a href="/Product/ProductDetails/<%= Html.Encode(ds_hot.Tables[0].Rows[j]["id"])%>">
                                <img src="../..<%=ds_hot.Tables[0].Rows[j]["img_url"] %>"/>
                            </a>
                        </td>
                        <td>
                            <a class="productname" href="/Product/ProductDetails/<%= Html.Encode(ds_hot.Tables[0].Rows[j]["id"])%>" title="<%=ds_hot.Tables[0].Rows[j]["product_name"] %>">
                                <%=ds_hot.Tables[0].Rows[j]["product_name"] %>
                            </a>
                        </td>
                        <td>
                            <%=ds_hot.Tables[0].Rows[j]["suit_crowds"]%>
                        </td>
                    </tr>
                    <%}
                    }
              else
              { %>暂无
            <%} %>
            </table>
<%--            <div class="more"><a>查看更多>></a></div>--%>
        </div>

        <div id="attention_brand">
            <table cellspacing="0" class="tb_list" id="Table1">
			    <thead>
				    <tr>
                        <th class="" style="width:8%">排名</th>
					    <th class="" style="width:40%">保健品牌</th>
					    <th class="" style="width:52%">明星产品</th>		
				    </tr>
			    </thead>
                <%System.Data.DataSet ds_brand = (new ProductController()).GetHotProducts(10);
                    if (ds_hot.Tables[0].Rows.Count > 0)
                    {
                        for (int i = 0; i < 3; i++)
                        {
                            string product_name = (new _619BJP.Web.Controllers.ArticleController()).TitleForShort(Html.Encode(ds_hot.Tables[0].Rows[i]["product_name"]), 10);
                %>
                    <tr>
                        <td><div class="rank_num_top"><span><%=i + 1%></span></div></td>
                        <td> 
                            <a class="productname" href="/Product/ProductDetails/<%= Html.Encode(ds_hot.Tables[0].Rows[i]["id"])%>" title="<%=ds_hot.Tables[0].Rows[i]["product_name"] %>">
                                <%=ds_hot.Tables[0].Rows[i]["product_name"] %>
                            </a>
                        </td>
                        <td>
                            <div>
                                <a href="/Product/ProductDetails/<%= Html.Encode(ds_hot.Tables[0].Rows[i]["id"])%>">
                                <img src="../..<%=ds_hot.Tables[0].Rows[i]["img_url"] %>"/>
                            </a>
                            </div>
                            <div>
                                <a href="/Product/ProductDetails/<%= Html.Encode(ds_hot.Tables[0].Rows[i]["id"])%>" title="<%=ds_hot.Tables[0].Rows[i]["product_name"] %>">
                                    <%=ds_hot.Tables[0].Rows[i]["product_name"] %>
                                </a>
                            </div>
                        </td>
                    </tr>
                    <%} for (int j = 3; j < 5; j++)
                        {
                            string product_name = (new _619BJP.Web.Controllers.ArticleController()).TitleForShort(Html.Encode(ds_hot.Tables[0].Rows[j]["product_name"]), 10);
                        %> 
                    <tr>
                        <td><div class="rank_num"><span><%=j+1%></span></td>
                        <td> 
                            <a class="productname" href="/Product/ProductDetails/<%= Html.Encode(ds_hot.Tables[0].Rows[j]["id"])%>" title="<%=ds_hot.Tables[0].Rows[j]["product_name"] %>">
                                <%=ds_hot.Tables[0].Rows[j]["product_name"] %>
                            </a>
                        </td>
                        <td>
                            <div>
                                <a href="/Product/ProductDetails/<%= Html.Encode(ds_hot.Tables[0].Rows[j]["id"])%>">
                                    <img src="../..<%=ds_hot.Tables[0].Rows[j]["img_url"] %>"/>
                                </a>                            
                            </div>
                            <div>
                                <a href="/Product/ProductDetails/<%= Html.Encode(ds_hot.Tables[0].Rows[j]["id"])%>" title="<%=ds_hot.Tables[0].Rows[j]["product_name"] %>">
                                    <%=ds_hot.Tables[0].Rows[j]["product_name"] %>
                                </a>
                            </div>
                        </td>
                    </tr>
                    <%}
                    }
              else
              { %>暂无
            <%} %>
            </table>
<%--            <div class="more"><a>查看更多>></a></div>--%>
        </div>
    </div>
    <div id="notice">
        <h3>公告中心</h3>
        <div class="content">
            <ul>
                <li> <a>千叶草真心大回馈</a></li>
                <li><a>千叶草真心大回馈！</a></li>
                <li><a>千叶草真心大回馈！</a></li>
                <li><a>千叶草真心大回馈</a></li>
                <li><a>千叶草真心大回馈！</a></li>
            </ul>
        </div>
    </div>
    <div id="advert_1">
        <img  src="../../AdImages/ad_3.jpg" alt=""/>
    </div>
    <%--<div id="browsing_history">
        <div class="title">你的浏览记录 <a>清空</a> </div>
            <ul>
                <li>
                    <img src="../../ProductImages/201109135414.jpg" />
                    <div class="prodcut_des">
                        产品描述 产品描述 产品描述 产品描述 产品描述 产品描述 
                    </div>
                </li>
                <li>
                    <img src="../../ProductImages/201109135414.jpg" />
                    <div class="prodcut_des">
                        产品描述 产品描述 产品描述 产品描述 产品描述
                    </div>
                </li>
                <li>
                    <img src="../../ProductImages/201109135414.jpg" />
                    <div class="prodcut_des">
                        产品描述 产品描述 产品描述 
                    </div>
                </li>
            </ul>
        </div>--%>
    <div id="advert_2">
            <img src="../../AdImages/ad_2.jpg" alt="#" />
        </div>
    <div id="effect_recommend">
            <div class="title">功效保健品推荐   <a class="recommend_more" href="/Product/ProductIndex">更多 >></a></div>
            <ul class="tabs">
                <li><a href="#effect_recommend_1">减肥</a></li>
                <li><a href="#effect_recommend_2">延缓衰老</a></li>
                <li><a href="#effect_recommend_3">补钙</a></li>
                <li><a href="#effect_recommend_4">祛黄褐斑</a></li>
            </ul>
            <div id="effect_recommend_1" class="effect_recommend_content">
                <ul>
                <%System.Data.DataSet ds_product = (new ProductController()).GetProductList(7, 3);
                  if (ds_product.Tables[0].Rows.Count > 0)
                  {
                      for (int j = 0; j < ds_product.Tables[0].Rows.Count; j++)
                      {
                %>
                    
                    <li> 
                        <a href="/Product/ProductDetails/<%=ds_product.Tables[0].Rows[j]["id"].ToString()%>" target="_blank">
                            <img src="../..<%=ds_product.Tables[0].Rows[j]["img_url"].ToString() %>"/>
                        </a>
                        <a href="/Product/ProductDetails/<%=ds_product.Tables[0].Rows[j]["id"].ToString()%>" target="_blank">
                            <%=ds_product.Tables[0].Rows[j]["product_name"].ToString()%>
                        </a>
                        <div class="price"><em class="yen">¥</em><%=ds_product.Tables[0].Rows[j]["market_price"].ToString()%></div>
                    </li>
                    <%}
                  }
                  else
                  {%>暂无
                  <%} %>
                </ul>
            </div>
            <div id="effect_recommend_2" class="effect_recommend_content">
                <ul>
                <%System.Data.DataSet ds_product1 = (new ProductController()).GetProductList(10, 3);
                  if (ds_product1.Tables[0].Rows.Count > 0)
                  {
                      for (int j = 0; j < ds_product1.Tables[0].Rows.Count; j++)
                      {
                %>
                    
                    <li> 
                        <a href="/Product/ProductDetails/<%=ds_product1.Tables[0].Rows[j]["id"].ToString()%>" target="_blank">
                            <img src="../..<%=ds_product1.Tables[0].Rows[j]["img_url"].ToString() %>"/>
                        </a>
                        <a href="/Product/ProductDetails/<%=ds_product1.Tables[0].Rows[j]["id"].ToString()%>" target="_blank">
                            <%=ds_product1.Tables[0].Rows[j]["product_name"].ToString()%>
                        </a>
                        <div class="price"><em class="yen">¥</em><%=ds_product1.Tables[0].Rows[j]["market_price"].ToString()%></div>
                    </li>
                    <%}
                  }
                  else
                  {%>暂无
                  <%} %>
                </ul>
            </div>
            <div id="effect_recommend_3" class="effect_recommend_content">
                <ul>
                <%System.Data.DataSet ds_product2 = (new ProductController()).GetProductList(2, 3);
                  if (ds_product2.Tables[0].Rows.Count > 0)
                  {
                      for (int j = 0; j < ds_product2.Tables[0].Rows.Count; j++)
                      {
                %>
                    
                    <li> 
                        <a href="/Product/ProductDetails/<%=ds_product2.Tables[0].Rows[j]["id"].ToString()%>" target="_blank">
                            <img src="../..<%=ds_product2.Tables[0].Rows[j]["img_url"].ToString() %>"/>
                        </a>
                        <a href="/Product/ProductDetails/<%=ds_product2.Tables[0].Rows[j]["id"].ToString()%>" target="_blank">
                            <%=ds_product2.Tables[0].Rows[j]["product_name"].ToString()%>
                        </a>
                        <div class="price"><em class="yen">¥</em><%=ds_product2.Tables[0].Rows[j]["market_price"].ToString()%></div>
                    </li>
                    <%}
                  }
                  else
                  {%>暂无
                  <%} %>
                </ul>
            </div>
            <div id="effect_recommend_4" class="effect_recommend_content">
                <ul>
                <%System.Data.DataSet ds_product3 = (new ProductController()).GetProductList(16, 3);
                  if (ds_product3.Tables[0].Rows.Count > 0)
                  {
                      for (int j = 0; j < ds_product3.Tables[0].Rows.Count; j++)
                      {
                %>
                    
                    <li> 
                        <a href="/Product/ProductDetails/<%=ds_product3.Tables[0].Rows[j]["id"].ToString()%>" target="_blank">
                            <img src="../..<%=ds_product3.Tables[0].Rows[j]["img_url"].ToString() %>"/>
                        </a>
                        <a href="/Product/ProductDetails/<%=ds_product3.Tables[0].Rows[j]["id"].ToString()%>" target="_blank">
                            <%=ds_product3.Tables[0].Rows[j]["product_name"].ToString()%>
                        </a>
                        <div class="price"><em class="yen">¥</em><%=ds_product3.Tables[0].Rows[j]["market_price"].ToString()%></div>
                    </li>
                    <%}
                  }
                  else
                  {%>暂无
                  <%} %>
                </ul>
            </div>
        </div>
    <div id="population_recommend">
        <div class="title">人群保健品推荐   <a class="recommend_more" href="/Product/ProductIndex">更多 >></a></div>
        <ul class="tabs">
            <li><a href="#population_recommend_1">男</a></li>
            <li><a href="#population_recommend_2">女</a></li>
            <li><a href="#population_recommend_3">老</a></li>
            <li><a href="#population_recommend_4">少</a></li>
        </ul>
        <div id="population_recommend_1" class="population_recommend_content">
            <ul>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 100</div>
                </li>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 100</div>
                </li>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 100</div>
                </li>
            </ul>
        </div>
        <div id="population_recommend_2" class="population_recommend_content">
            <ul>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 200</div>
                </li>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 200</div>
                </li>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 200</div>
                </li>
            </ul>
        </div>
        <div id="population_recommend_3" class="population_recommend_content">
            <ul>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 300</div>
                </li>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 300</div>
                </li>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 300</div>
                </li>
            </ul>
        </div>
        <div id="population_recommend_4" class="population_recommend_content">
            <ul>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 400</div>
                </li>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 400</div>
                </li>
                <li>
                    <img  src="../../ProductImages/201109135414.jpg" alt="#"/>
                    <div class="info">xxxxxx</div>
                    <div class="price"><em class="yen">¥</em> 400</div>
                </li>
            </ul>
        </div>
    </div>
</asp:Content>
